package com.ruoyi.project.cyq.statistics.mapper;

import com.ruoyi.project.cyq.statistics.domain.IOrderGenre;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 刘鹿
 * @date 2020-09-18 15:53
 */
@Repository
public interface IOrderGenreMapper {
    //查询展示数据
    IOrderGenre selectGenreById(long genreId);

    //查询数据
    List<IOrderGenre> selectGenreList(IOrderGenre iOrderGenre);

    //验证订单类别名称唯一性
    IOrderGenre checkGenreNameUnique(String genreName);

    //新增订单类别
    int insertOrderGenre(IOrderGenre iOrderGenre);

    //修改数据
    int updateOrderGenre(IOrderGenre iOrderGenre);

    //删除数据
    int deleteOrderGenreByIds(long[] genreIds);
}
